const path = require('path')
const publicPath = './'
const pageUtils = require('./entriesConfig')
module.exports = {
    publicPath: publicPath,
    pages: pageUtils.pages().pages,
    devServer: {
        clientLogLevel: 'warning',
        historyApiFallback: {
          rewrites: pageUtils.pages().histroyReWrite,
        },
        host: 'localhost',
        port: '8000',
         proxy: {
          '/api': {
            target: 'https://springboot-79y9-187380-4-1379203838.sh.run.tcloudbase.com',
            ws: true,
            changeOrigin: true,
            pathRewrite: {
              '^/api': ''
            }
          },
        }
    },
    lintOnSave: false
}